<section class="content-header">
	<h1>
		{{title}}<small></small>
	</h1>
</section>
<section class="content">
	<div class="box box-default">
		<div class="col-md-12">
			<div class="box-body" ng-controller="posts as fb">
				<alertdanger></alertdanger>
				<alertsuccess></alertsuccess>
				<form role="form">
					<!-- 添加信息 -->
					<div class="box-body" ng-show="add.show">
						<div class="form-group">
							<label>标题</label> <input maxlength="45" required="required" ng-model="poststitle"
								class="form-control" type="text" placeholder="请输入标题" value="">
						</div>
						<div class="form-group">
							<label>内容</label> <input maxlength="500" required="required" ng-model="content"
								class="form-control" type="text" placeholder="请输入内容" value="">
						</div>
						<div class="form-group">
							<label>图片</label> <input maxlength="200" required="required" ng-model="imageurl"
								class="form-control" type="text" placeholder="请输入图片路径" value="">
						</div>
					</div>
					<!-- 查看信息 -->
					<div class="box box-widget" ng-show="select.show">
						<div class="form-group">
		                    <label>
		                      <input type="radio" ng-model="status" ng-value="1" class="flat-red" ng-checked="true">
		                      启用
		                    </label>
		                    <label>
		                      <input type="radio"  ng-model="status" ng-value="0" class="flat-red">
		                      禁用
		                    </label>
		               
	                  	</div>
						<div class='box-header with-border'>
							<div class='user-block'>
								<img class='img-circle' ng-src="{{headpath}}" alt='user image'> 
									<span class='username'>{{loginname}}</span> 
									<span class='description'>{{createtime | date:'yyyy-MM-dd HH:mm:ss'}}</span>
							</div>
						</div>
						<div class='box-body'>
							<h3>{{poststitle}}</h3>
							<p>{{content}}</p>
							<img class="img-responsive pad" ng-src="{{bigimageurl}}" alt="Photo">
							<button class='btn btn-default btn-xs'>
								<i class='fa fa-thumbs-o-up'></i> Like
							</button>
							<span class='pull-right text-muted'>{{zannum}} likes - {{replynum}} comments</span>
						</div>
						<div class='box-footer box-comments' ng-init="findAllPostsReply();">
							<div class='box-comment' ng-repeat="pr in postsreplylist">
								<img class='img-circle img-sm'
									src="{{pr.headpath}}" alt='user image'>
								<div class='comment-text'>
									<span class="username"> {{pr.loginname}} <span
										class='text-muted pull-right'>{{pr.createtime | date:'yyyy-MM-dd HH:mm:ss'}}</span>
									</span>
									{{pr.replycontent}}
								</div>
							</div>
						</div>
					</div>
					<div class="box-footer">
						<button ng-show="savebtn.show" type="button"
							class="btn btn-primary" ng-click="save();">保存</button>
						<button ng-show="updatebtn.show" type="button"
							class="btn btn-primary" ng-click="update();">更新</button>
					</div>
				</form>
			</div>
		</div>
		<div class="box-footer"></div>
	</div>
</section>